#include "DialogWebSync.h"

//(*InternalHeaders(DialogWebSync)
#include <wx/intl.h>
#include <wx/string.h>
//*)

//(*IdInit(DialogWebSync)
const long DialogWebSync::ID_BUTTON1 = wxNewId();
const long DialogWebSync::ID_TEXTCTRL1 = wxNewId();
//*)

BEGIN_EVENT_TABLE(DialogWebSync,wxDialog)
	//(*EventTable(DialogWebSync)
	//*)
END_EVENT_TABLE()

DialogWebSync::DialogWebSync(wxWindow* parent,wxWindowID id,const wxPoint& pos,const wxSize& size)
{
	//(*Initialize(DialogWebSync)
	Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_DIALOG_STYLE, _T("id"));
	SetClientSize(wxSize(400,467));
	Move(wxDefaultPosition);
	Button1 = new wxButton(this, ID_BUTTON1, _("关闭"), wxPoint(144,360), wxDefaultSize, 0, wxDefaultValidator, _T("ID_BUTTON1"));
	TextCtrl1 = new wxTextCtrl(this, ID_TEXTCTRL1, _("Text"), wxPoint(144,120), wxDefaultSize, 0, wxDefaultValidator, _T("ID_TEXTCTRL1"));

	Connect(ID_BUTTON1,wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction)&DialogWebSync::OnClose);
	//*)
}

DialogWebSync::~DialogWebSync()
{
	//(*Destroy(DialogWebSync)
	//*)
}


void DialogWebSync::OnClose(wxCommandEvent& event)
{
    this->Show(false);
}
